<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 基本样式 -->
    <link rel="stylesheet" href="../src/mixins/style/normalize.css" />
    <link rel="stylesheet" href="../src/com_third/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../src/mixins/style/base.css" />

    <!-- 当时项目公共样式 -->
    <link rel="stylesheet" href="src/common.css" />

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="../src/lib/bootstrap.min.css" />

    <style>
        body {
            background-color: white;
            margin: 20px;
        }

        .body-inner {
            background-color: #eee;
        }

        .imgdiv {
            width: 224px;
            height: 160px;
            border: 1px floralwhite solid;
            display: inline-block;

            margin: 10px auto;
            margin-right: 100px;
        }

        .swiper-container {
            width: 224px;
            height: 160px;
        }

        .swiper-container .swiper-slide,
        .swiper-container .swiper-slide img {
            width: 224px;
            height: 160px;
        }
    </style>
</head>

<body>

    <div v-cloak class="container-fluid clearfix mt_20" id="app">


        <div class="alert alert-danger mt_20" role="alert">通过指令与dom无缝对接,更好的引入三方插件</div>

        <div class="alert alert-danger mt_20" role="alert">扩展 v-color-orangered 字橘红色</div>
        
        <input type="text" class="form-control" v-color-orangered placeholder="没有自动获取焦点" />

        <div class="alert alert-danger mt_20" role="alert">扩展 v-focus 字橘红色</div>
        <input type="text" class="form-control" v-focus placeholder="自动获取焦点" />

        <div class="alert alert-danger mt_20" role="alert">扩展 v-img-lazy-load 图片懒加载</div>
        <div v-img-lazy-load="item.url" v-for="item in list" class="imgdiv"></div>

        <div class="alert alert-danger mt_20" role="alert">扩展 v-highlight 代码高亮</div>
        <div>
            <code v-highlight>
                {{html}} 
            </code>
        </div>


        <div class="alert alert-danger mt_20" role="alert">扩展 v-layer 点击弹层</div>
        <button class="btn btn-success" v-layer="layerConfig">点击显示</button>

        <div class="alert alert-danger mt_20" role="alert">扩展 v-swiper 轮翻</div>

        <div v-swiper class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide" v-for="img in list">
                    <img v-bind:src="img.url" alt="">
                </div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>

            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>

            <!-- 如果需要滚动条 -->
            <div class="swiper-scrollbar"></div>
        </div>



    </div>

    <script src="../src/lib/jquery.js"></script>
    <script src="../src/lib/sea-all.js"></script>
    <script src="../src/lib/vue.js"></script>
    <script src="../src/lib/vue-router.js"></script>
    <script src="../boot.js"></script>
    <script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>


    <script>
        $(function () {
            seajs.use('./14_directive.js');
        })
    </script>



</body>

</html>